package pushup.view;

import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerSorter;

import pushup.model.Type;

public class NameSorter extends ViewerSorter {

	@Override
	public int compare(Viewer viewer, Object e1, Object e2) {
		Type t1 = (Type) e1;
		Type t2 = (Type) e2;
		
		return t1.getName().compareTo(t2.getName());
	}
	
	

}
